<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import React from "react";
import PropTypes from "prop-types";
import ${declarationNameFirstLetterLower}QuerySchema from "../../schema/${declarationNameFirstLetterLower}.querySchema";
import BaseFilter from "../../components/ling/BaseFilter";
import {DatePicker, Form} from "antd";

const {RangePicker} = DatePicker
const FormItem = Form.Item;

export default class ${declarationName}Filter extends React.Component {

  static propTypes = {
    onFilterChange: PropTypes.func,
  }

  static defaultProps = {
    schema: [
<#assign fields=pojo.getPojoFields()>
<#foreach field in fields>
<#if field.getIsSampleField()>
      {
        key: '${field.getName()}',
        title: '<#if field.getComment()?exists>${field.getComment()}<#else>${field.getName()}</#if>',
        placeholder: '请输入<#if field.getComment()?exists>${field.getComment()}<#else>${field.getName()}</#if>',
        dataType: '${field.getHtmlType()}',
        showType: 'normal',
      },
</#if>
</#foreach>
    ]
  }

  render() {
    return (
      <BaseFilter {...this.props}/>
    )
  }
}

